package com.culturalCenter.dataCenter.service.user;

import com.culturalCenter.dataCenter.entity.user.UserPointDecrease;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserPointDecreaseService {

    /**
     * UserPointDecrease分页查询
     *
     * @param page
     * @param size
     *
     * @return
     */
    PageInfo<UserPointDecrease> findPage(int page, int size);

    /**
     * 删除UserPointDecrease
     *
     * @param id
     */
    Integer delete(String id);

    /**
     * 修改UserPointDecrease数据
     *
     * @param userPointDecrease
     */
    Integer update(UserPointDecrease userPointDecrease);

    /**
     * 新增UserPointDecrease
     *
     * @param userPointDecrease
     */
    Integer add(UserPointDecrease userPointDecrease);

    /**
     * 根据ID查询UserPointDecrease
     *
     * @param id
     *
     * @return
     */
    UserPointDecrease findById(String id);

    /**
     * 查询所有UserPointDecrease
     *
     * @return
     */
    List<UserPointDecrease> findAll(UserPointDecrease userPointDecrease);

}
